<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>jQuery使用</title>
		<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
</script>
        <script>
        	function showImg(){
        		$("#myimg").show();
        		//document.getElementById("myimg")
        	}
        	function hideImg(){
        		$("#myimg").hide();
        		//document.getElementById("myimg")
        	}
        </script>
	</head>
	<body>
		<img id="myimg" src="img/1.jpg"/>
		<button onclick="showImg()">显示图片<tton>
		<button onclick="hideImg()">隐藏图片<tton>
	</body>
</html>
